package com.example.shaoying.yuejian.service;

/**
 * Created by ShaoYing on 2017/10/9.
 */
import com.example.shaoying.yuejian.javabean.ClubCourse;
import com.example.shaoying.yuejian.javabean.ClubInfo;
import com.example.shaoying.yuejian.javabean.ClubList;
import com.example.shaoying.yuejian.javabean.ClubVideo;
import com.example.shaoying.yuejian.javabean.Login;
import com.example.shaoying.yuejian.javabean.Register;
import com.example.shaoying.yuejian.javabean.Train;
import com.example.shaoying.yuejian.javabean.TrainInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface clubeService {

    //俱乐部列表
    @GET("lists/mod/club")
    Call<List<ClubList>> getClubList();

    @GET("nearclub")
    Call<List<ClubList>> getNearClubList();
    //培训列表
    @GET("lists/mod/train")
    Call<List<Train>>getlistsTraining();

    //http://172.24.10.175/workout/api.php/create/mod/signtrain/participantname/郑俊生/train_id/3/participanttel/13889618807/adultnum/1/paytype/1/pay/330/paynotice/pppppp/userid/19/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3

    @GET("create/mod/signtrain/")
    Call<String> joinTrain(
            @Query("participantname") String participantname,
            @Query("train_id") String train_id,
            @Query("participanttel") String participanttel,
            @Query("adultnum") String adultnum,
            @Query("paytype") String paytype,
            @Query("pay") String pay,
            @Query("paynotice") String paynotice,
            @Query("userid") String userid,
            @Query("SessionID") String SessionID

    );

    @GET("get/mod/train/")
    Call<TrainInfo> getTrainInfo(@Query("id") String  id);

    //俱乐部简介
    @GET("get/mod/club/")
    Call<ClubInfo> getClubInfo(@Query("id") String id);

    //俱乐部课程
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/")
    Call<ClubCourse> getClubCourse(@Query("id") String id,
                                   @Query("map") String map);
    //俱乐部视频
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/")
    Call<ClubVideo> getClubVideo(@Query("id") String id,
                                 @Query("map") String map);

    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/")
    Call<Integer> getClubState(@Query("fan_id") String fan_id,
                               @Query("userid") String userid,
                               @Query("fans_type") String fan_type,
                               @Query("SessonID") String SessonID
    );

    //关注俱乐部
    @GET("focus")
    Call<String> gunazhu(         @Query("SessionID") String SessionID,
                                  @Query("userid") String userid,
                                  @Query("fan_id") String fan_id,
                                  @Query("fans_type") String fans_type);
    //取消俱乐部
    @GET("delete")
    Call<String> delete(@Query("mod") String mod,
                                  @Query("club_id") String club_id,
                                  @Query("user_id") String user_id);


}
